// shell_func.h
// 	declare built in commands
//
//
#ifndef SHELL_FUNC_H
#define SHELL_FUNC_H

typedef void vFunc(int, char**);
// for built in command
struct command {
	char cmdName[16];
	vFunc *builtInFun;
};

// for variables
struct variable {
	char varName[16];
	char varValue[64];
};

// command process
int readCommand(char *cmd);
int parseCommand(char *cmd);

// built in functions
void echo(int argc, char **argv);
void help(int argc, char **argv);
void quit(int argc, char **argv);

// commands for directory operations
vFunc cd;
vFunc pwd;
vFunc ls;
vFunc mkdir;
vFunc rmdir;
vFunc rename;
vFunc rm;
vFunc cp;
vFunc append;
vFunc cat;
vFunc get;
vFunc new;

#endif
